import request from '@/utils/request'

// 查询巡更记录列表
export function listInspectionRecord(query) {
  return request({
    url: '/security/inspectionRecord/list',
    method: 'get',
    params: query
  })
}

// 查询巡更记录详细
export function getInspectionRecord(id) {
  return request({
    url: '/security/inspectionRecord/' + id,
    method: 'get'
  })
}

// 新增巡更记录
export function addInspectionRecord(data) {
  return request({
    url: '/security/inspectionRecord',
    method: 'post',
    data: data
  })
}

// 修改巡更记录
export function updateInspectionRecord(data) {
  return request({
    url: '/security/inspectionRecord',
    method: 'put',
    data: data
  })
}

// 删除巡更记录
export function delInspectionRecord(id) {
  return request({
    url: '/security/inspectionRecord/' + id,
    method: 'delete'
  })
}
